//
//  SharedPrefs.h
//  MobilIzleme
//
//  Created by Mehmet Sinan Şahin on 1/7/12.
//  Copyright (c) 2012 netgis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
/*
 * Utility class for reading and writing to shared preferences 
 */
@interface SharedPrefs : NSObject

+ (void) registerDefaults;

+ (void) sync;

+ (BOOL) useGPS;
+ (void) setUseGPS: (BOOL)value;

+ (BOOL) isSendToServer;
+ (void) setSendToServer: (BOOL)value; 

+ (BOOL) isSignificant;
+ (void) setSignificantLocationUpdate: (BOOL)value;

+ (NSString *) getServiceUrl;
+ (void) setServiceUrl: (NSString *)value;
+ (NSString *)getServiceUrlHostName;

+ (NSString *) getSessionID;
+ (void) setSessionID: (NSString *)value;

+ (NSString *) getUserName;
+ (void) setUserName: (NSString *)value;

+ (NSString *) getPassword;
+ (void) setPassword: (NSString *)value;

+ (int) getLocationSize;
+ (void) setLocationSize: (int)value;

+ (int) getDeltaDistance;
+ (void) setDeltaDistance: (int) value;

+ (CLLocationAccuracy) getTimeInterval;
+ (void) setTimeInterval: (int) value ;

+ (int) getSendFrequency;
+ (void) setSendFrequency: (int)value;

+ (int) getDBModelVersion;

/*
 * true for acceptence, false for rejection
 */
+ (BOOL) isServiceAggreed;
/*
 * @param value true for acceptence, false for rejection
 */
+ (void) setServiceAggrementStatus: (BOOL) value;

@end
